package com.maozzi.website.web.feign.hystrix;

import com.maozzi.common.model.ResultVO;
import com.maozzi.website.web.feign.UserService;
import com.maozzi.website.web.model.AclUserVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * circuit breaker hystrix 熔断器
 *
 * @author maozi
 */
@Slf4j
@Component
public class UserServiceHystrix implements UserService {
    @Override
    public ResultVO<AclUserVO> getAclUser(Long userId) {
        log.info("UserServiceHystrix 服务降级-------userId={}", userId);
        return ResultVO.fail("");
    }
}
